package com.taichuan.selfcheck.ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.taichuan.selfcheck.R;
import com.taichuan.selfcheck.entity.USBDeviceInfo;
import com.taichuan.selfcheck.entity.WifiBean;

/**
 * 该类主要用于
 *
 * @author CamelLuo
 * @version 2021/11/5
 */
public class USBDeviceInfoAdapter extends BaseQuickAdapter<USBDeviceInfo, BaseViewHolder> {


    public USBDeviceInfoAdapter() {
        super(R.layout.item_usb_device_info);
    }

    @Override
    protected void convert(BaseViewHolder helper, USBDeviceInfo item) {
        helper.setText(R.id.usb_device_name_textView,item.getProductName());
        helper.setText(R.id.usb_device_vendorId_textView,item.getVendorId() + "");
        helper.setText(R.id.usb_device_productId_textView,item.getProductId() + "");
        helper.setText(R.id.usb_device_file_path_textView,item.getDeviceFilePath());
        helper.setText(R.id.usb_device_manufacturer_name_textView,item.getManufacturerName());
        helper.setText(R.id.usb_device_version_textView,item.getVersion());
        helper.setText(R.id.usb_device_serial_number_textView,item.getSerialNumber());
    }
}
